﻿<phone:PhoneApplicationPage 
    x:Class="YiDingCanWp7.AddShop"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="800" d:DesignWidth="480"
    shell:SystemTray.IsVisible="False">

    
        
        <!--LayoutRoot 是包含所有页面内容的根网格-->
    <Grid x:Name="LayoutRoot">
        <Grid.Background>
            <ImageBrush ImageSource="PanoramaBackground.png" Stretch="UniformToFill" />
        </Grid.Background>
        <Grid.Resources>
            <DataTemplate x:Name="PickerItemTemplate">
                <StackPanel Orientation="Horizontal">
                    <Border Width="334" Height="34">
                        <TextBlock Text="{Binding name}" FontSize="16" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                    </Border>
                </StackPanel>
            </DataTemplate>
            <DataTemplate x:Name="PickerFullModeItemTemplate">
                <StackPanel Orientation="Horizontal" Margin="16 21 0 20">
                    <TextBlock Text="{Binding name}" Margin="16 0 0 0" FontSize="23" FontFamily="{StaticResource PhoneFontFamilyLight}"/>
                </StackPanel>
            </DataTemplate>
        </Grid.Resources>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel 包含应用程序的名称和页标题-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <toolkit:PerformanceProgressBar x:Name="performanceProgressBar"  Foreground="Red" Background="Red" IsIndeterminate="False"/>
            <TextBlock x:Name="PageTitle" Text="分享商店" Margin="9,-7,0,0" Style="{StaticResource CustomPhoneTextTitleStyle}"  Height="60" Width="467" FontSize="50" />
            <!--<TextBlock x:Name="ApplicationTitle" Text="易订餐" Style="{StaticResource PhoneTextNormalStyle}"/>-->
        </StackPanel>

        <!--ContentPanel - 在此处放置其他内容-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <TextBlock  Foreground="Gray" Height="30" HorizontalAlignment="Left" Margin="20,44,0,0" Name="textBlock_title" Text="店名：" VerticalAlignment="Top" />
            <TextBox  Foreground="Gray" Height="72" HorizontalAlignment="Left" Margin="86,19,0,0" Name="textBox_Title" Text="" VerticalAlignment="Top" Width="341" />
            <TextBlock  Foreground="Gray" Height="30" HorizontalAlignment="Left" Margin="20,120,0,0" Name="textBlock_category" Text="类型：" VerticalAlignment="Top" />
            <TextBlock  Foreground="Gray" Height="30" HorizontalAlignment="Left" Margin="20,200,0,0" Name="textBlock1" Text="电话：" VerticalAlignment="Top" />
            <TextBox  Foreground="Gray" Height="72" HorizontalAlignment="Left" Margin="86,180,0,0" Name="textBox_phone" Text="" VerticalAlignment="Top" Width="341">
                <TextBox.InputScope>
                    <InputScope>
                        <InputScopeName NameValue="TelephoneNumber"/>
                    </InputScope>
                </TextBox.InputScope>
            </TextBox>
            
            <toolkit:ListPicker Header="" ExpansionMode="FullScreenOnly" FullModeItemTemplate="{StaticResource PickerFullModeItemTemplate}" ItemTemplate="{StaticResource PickerItemTemplate}"
                                x:Name="listBox_category" Margin="98,96,0,0" Height="54" Width="316" VerticalAlignment="Top" HorizontalAlignment="Left" FontSize="20" />
            <Button  Foreground="Gray" Visibility="Collapsed" Content="提交" Height="72" HorizontalAlignment="Left" Margin="116,420,0,0" Name="Btn_Submit" VerticalAlignment="Top" Width="261" Click="Btn_Submit_Click" />
            <TextBlock  Foreground="Gray" Height="30" HorizontalAlignment="Left" Margin="20,271,0,0" Name="textBlock2" Text="介绍：" VerticalAlignment="Top" />
            <TextBox  Foreground="Gray" Height="211" HorizontalAlignment="Left" Margin="86,271,0,0" Name="textBox_Desc" Text="" VerticalAlignment="Top" Width="341">
                <TextBox.InputScope>
                    <InputScope>
                        <InputScopeName NameValue="Text"/>
                    </InputScope>
                </TextBox.InputScope>
            </TextBox>
        </Grid>
    </Grid>

    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="False">
            <shell:ApplicationBarIconButton Click="ApplicationBarIconButton_Click"  IconUri="/Images/appbar.check.rest.png" Text="完成"/>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>
</phone:PhoneApplicationPage>
